Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 6 - Configuration Management / Configuration Management Reference


Constants and Data Types

This section describes the basic configuration management constants, the Gestalt function selector and response bits, the configuration structure, the port structure, and the port reference structure.

These constants provide length and size values for modules, provider names, and slot IDs. These fields all end with a byte for the terminating zero. The constant kMaxProviderNameSize permits a length of 36 bytes: 31 bytes for the name, up to 4 bytes of extra characters (called minor numbers in Streams specifications, and currently not used), and a byte for the zero that terminates the string.

enum {
   kMaxModuleNameLength    = 31,
   kMaxModuleNameSize      = kMaxModuleNameLength + 1,
   kMaxProviderNameLength  = kMaxModuleNameLength + 4,
   kMaxProviderNameSize    = kMaxProviderNameLength + 1,
   kMaxSlotIDLength        = 7,
   kMaxSlotIDSize          = 8,
   kMaxResourceInfoLength  = 31,
   kMaxResourceInfoSize    = 32
};

Subtopics
The Gestalt Selector and Response Bits
Port-Related Events
The Configuration Structure
The Port Structure
The Port Reference
The Client List Structure
The Port Close Structure

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996